Creative
Get a creative
소재를 조회합니다.
GET
/
creatives
/
{id}
Get a creative
curl --request GET \
--url https://your_a2_service/creatives/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://your_a2_service/creatives/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://your_a2_service/creatives/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your_a2_service/creatives/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your_a2_service/creatives/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://your_a2_service/creatives/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://your_a2_service/creatives/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"no": 123,
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "banner",
"banner": {
"ext": {},
"img": "",
"link": {
"ext": {},
"url": ""
}
},
"cid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"height": 0,
"native": {
"ext": {},
"link": {
"ext": {},
"url": ""
}
},
"status": "inactive",
"updated_at": "2023-11-07T05:31:56Z",
"video": {
"adm": "",
"ctype": 2,
"dur": 0,
"ext": {
"cdn": "",
"linear": 1,
"link": {
"ext": {},
"url": ""
},
"url": ""
},
"mime": ""
},
"width": 0
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}인증
The access token received from the authorization server in the OAuth 2.0 flow.
경로 매개변수
소재 ID
응답
Successful Response
소재 조회 스키마
소재 id
소재 이름
소재 번호
소재의 소유자 id
소재 유형
사용 가능한 옵션:
banner, video, native 배너 이미지 및 추가 옵션
Show child attributes
Show child attributes
소재가 사용될 캠페인의 id
소재의 생성시간
소재 설명
소재의 높이
네이티브 소재 및 추가 옵션
Show child attributes
Show child attributes
소재의 상태
사용 가능한 옵션:
active, inactive 소재의 수정시간
비디어 소재 정보 및 추가 옵션
Show child attributes
Show child attributes
소재의 너비
이 페이지가 도움이 되었나요?
⌘I
Get a creative
curl --request GET \
--url https://your_a2_service/creatives/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://your_a2_service/creatives/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://your_a2_service/creatives/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your_a2_service/creatives/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your_a2_service/creatives/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://your_a2_service/creatives/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://your_a2_service/creatives/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"no": 123,
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "banner",
"banner": {
"ext": {},
"img": "",
"link": {
"ext": {},
"url": ""
}
},
"cid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"height": 0,
"native": {
"ext": {},
"link": {
"ext": {},
"url": ""
}
},
"status": "inactive",
"updated_at": "2023-11-07T05:31:56Z",
"video": {
"adm": "",
"ctype": 2,
"dur": 0,
"ext": {
"cdn": "",
"linear": 1,
"link": {
"ext": {},
"url": ""
},
"url": ""
},
"mime": ""
},
"width": 0
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}